package com.example.drink_order_system.entity;

import java.util.ArrayList;

public class task {
    private String task_detail;
    private int score;
    private boolean is_done = false;
    private static ArrayList<task> tasks;

    static {
        tasks = new ArrayList<>();
        tasks.add(new task("每日签到",20));
        tasks.add(new task("完成一笔订单",200));
        tasks.add(new task("邀请好友注册",50));
        tasks.add(new task("邀请好友注册并完成首单",200));
        tasks.add(new task("完善信息",50));
        tasks.add(new task("访问积分商城",20));
        tasks.add(new task("使用优惠券",50));
    }
    private task(String task_detail,int score){
        this.task_detail = task_detail;
        this.score = score;
    }
    public static ArrayList<task> getTasks() {
        return tasks;
    }

    public String getTask_detail() {
        return task_detail;
    }

    public void setTask_detail(String task_detail) {
        this.task_detail = task_detail;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public void setIs_done(boolean is_done) {
        this.is_done = is_done;
    }

    public boolean isIs_done() {
        return is_done;
    }
}
